<?php
	if(!isset($_SESSION['user']) && isset($_COOKIE['eam_eclass_login']))
	{
		foreach($_COOKIE['eam_eclass_login'] as $name => $value)
			$_SESSION[$name] = $value;
	}
	else if(!isset($_SESSION['user']))
		header('Location: login.php');
?>
